<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/12/28
 * Time: 21:06
 */

namespace app\modules\nullObject;


use app\models\EntityObject;
use app\models\ShopAddress;

class ShopAddressRepository
{
    public function findShopAddressById($id)
    {
        $shopAddress = ShopAddress::find()
            ->where(['id' => $id])
            ->limit(1)
            ->one(ShopAddress::getDb());

        return new EntityObject($shopAddress);
    }
}